﻿#region copyright.anytao.com
// Copyright   : 2008, Anytao.com
// Author      : Anytao，http://www.anytao.com
// FileName    : Anytao.ISpace.DAL
// Release     : 2008/06/07 1.0
// Description : Interface for user
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Anytao.ISpace.Entity;

namespace Anytao.ISpace.DAL
{
    public interface IUser
    {
        IList<User> GetUsers();

        IList<User> GetUsersByID(int userID);

        IList<User> GetUsersBySearch(string[] keywords);

        User GetUser(int userID);

        User GetUser(string userName);

        User GetUser(string userName, string password);

        void Insert(User user);

        void Delete(int userID);

        void Update(User user);

        bool IsInRole(string roleName);
    }
}
